package com.zr.dao.car;

import com.zr.vo.car.CarPhoto;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

@CacheNamespace
public interface CarPhotoDao {
    int deleteByPrimaryKey(Long id);

    int insert(CarPhoto record);

    int insertSelective(CarPhoto record);

    CarPhoto selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CarPhoto record);

    int updateByPrimaryKey(CarPhoto record);


    //根据车牌号查找所有的车辆图片
    List<String> selectPhotosByNumber(String number);

    int deleteByNumber(String number);

    int updateNumberByNumber(String oldNumber,String newNumber);

    String selectHeadByNum(String carNumber);
}